<html>
<head>
<title>G32Version</title>
<link rel="stylesheet" href="../../../../styles/default.css" type="text/css">
</head>
<body bgcolor="#FFFFFF">

<p class="Decl"><b>function</b> Orientation(<b>const</b> Polygon: TArrayOfFloatPoint): Boolean;</p>
<br>

<p class="Body">
Orientation returns <b>true</b> if the supplied polygon's orientation is <b>clockwise</b>.<br><br>

Orientation is important to differentiate outer 'container' polygon contours from inner 'hole' polygon contours.<br><br> 

When polygons are <a href="../Classes/TClipperBase/Methods/Add.htm">Added</a> to a <a href="../Classes/TClipper/_Body.htm">TClipper</a> object, <b>it doesn't matter whether outer polygons have clockwise or counter-clockwise orientation</b>, it's only important that inner polygons have the opposite orientation to outer polygons. <br><br> 

However, when polygons are passed to the <a href="./InflatePolygons.htm">InflatePolygons</a> function, <b>it is important that outer polygons have a clockwise orientation</b>.<br><br>

It is assumed that the programmer understands polygon winding rules and how these affect <a href="../Types/TPolyFillType.htm">polygon filling</a> (rendering), and that polygon orientation is integral to determining winding values.<br>
</p>

<a href="./ReversePolygon.htm" id="hidden"></a>
<a href="./ReversePolygons.htm" id="hidden"></a>

</body>
</html>